
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Domain.IRepository.WareHouse;
using FriendStar.Repository.WareHouse;
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace CopyrightFriendStar.Application.WareHouse
{
    public class CYK_23_PC_StoCPKAIAOAccoApp
    {
        private ICYK_23_PC_StoCPKAIAOAccoRepository service = new CYK_23_PC_StoCPKAIAOAccoRepository();

        public List<CYK_23_PC_StoCPKAIAOAccoEntity> GetList()
        {
            return service.IQueryable().ToList();
        }
        public CYK_23_PC_StoCPKAIAOAccoEntity GetForm(string keyValue)
        {
            return service.FindEntity(keyValue);
        }
        public void DeleteForm(string keyValue)
        {
            
        }
        public void SubmitForm(CYK_23_PC_StoCPKAIAOAccoEntity CYK_23_PC_StoCPKAIAOAccoEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                service.Update(CYK_23_PC_StoCPKAIAOAccoEntity);
            }
            else
            {
                service.Insert(CYK_23_PC_StoCPKAIAOAccoEntity);
            }
        }
    }
}
